import os
import random

peolpe_number = [20,100,500]
bounce_number = [101,549,120]
start_id = [41,50,64] 
files = os.listdir('./data')
for i in [3,4,5]:
    f = open('./data/'+str(i)+'.in','a')
    f.write(str(peolpe_number[i-3]))
    f.write(' ')
    f.write(str(bounce_number[i-3]))
    f.write('\n')
    for j in range(peolpe_number[i-3]+start_id[i-3],start_id[i-3],-1):
        f.write(str(j))
        f.write(' ')
    f.write('\n')
    f.close()